                <div id="content" class="span10">
                    <!-- content starts -->
                    <div class="row-fluid sortable">
                        <div class="box span12">
                            <div class="box-content">
                                <?php if(!empty($detail)){
                                    foreach ($detail as $row){
                                    ?>
                                <form class="form-horizontal" action="<?php echo base_url();?>akv/update" method="post">
                                  <fieldset>
                                    <legend>Ubah Detail Aktiva</legend>
                                    <div class="row-fluid">
                                        <div class="span6">
                                            <div class="control-group">
                                                <label class="control-label" for="typeahead">Nomor Aktiva</label>
                                                <div class="controls">
                                                    <input type="hidden" class="span6 typeahead" id="typeahead" name="id_aktiva" id="id_aktiva" value="<?=$row['id_aktiva']?>">
                                                    <input type="text" class="span8 typeahead" name="id_aktiva" id="id_aktiva" value="<?=$row['id_aktiva']?>" readonly="true">
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="typeahead">Nama Aktiva</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="nama" id="nama" value="<?=$row['nama']?>">
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="typeahead">Keterangan</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="keterangan" id="keterangan" value="<?=$row['keterangan']?>">
                                                </div>
                                            </div>
											<div class="control-group">
                                                <label class="control-label" for="typeahead">Harga Perolehan</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="harga_perolehan" id="harga_perolehan" value="<?=$row['harga_perolehan']?>">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="span6">
											<div class="control-group">
                                                <label class="control-label" for="typeahead">Nilai Residu</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="nilai_residu" id="nilai_residu" value="<?=$row['nilai_residu']?>">
                                                </div>
                                            </div>
											<div class="control-group">
                                                <label class="control-label" for="typeahead">Umur Ekonomis</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="umur_ekonomis" id="umur_ekonomis" value="<?=$row['umur_ekonomis']?>">
                                                </div>
                                            </div>
											<div class="control-group">
                                                <label class="control-label" for="typeahead">Cabang</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="cabang" id="cabang" value="<?=$row['cabang']?>">
                                                </div>
                                            </div>
                                        </div>
                                        
                                    </div>
                                    <div class="form-actions">
                                        <button type="submit" class="btn btn-primary">Submit</button>
                                        <a type="reset" class="btn" href="<?php echo base_url() ?>akv">Cancel</a>
                                    </div>
                                    </fieldset>
                                </form>
								
                                <?php }}else {?>
                                
								<form class="form-horizontal" action="<?php echo base_url();?>akv/insert" method="post">
                                  <fieldset>
                                    <legend>Tambah Aktiva Baru</legend>
                                    <?php if(empty($error)){}else{?>
                                    <div class="alert alert-warning alert-dismissible" role="alert">
                                        <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only"></span></button>
                                        <strong>Peringatan!</strong> Kode aktiva sudah ada
                                    </div>
                                    <?php } ?>
                                    <div class="row-fluid">
                                        <div class="span6">
                                            <div class="control-group">
                                                <label class="control-label" for="typeahead">Nomor Aktiva</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="id_aktiva" id="id_aktiva" >
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="typeahead">Nama Aktiva</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="nama" id="nama" >
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="typeahead">Keterangan</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="keterangan" id="keterangan" >
                                                </div>
                                            </div>
											<div class="control-group">
                                                <label class="control-label" for="typeahead">Harga Perolehan</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="harga_perolehan" id="harga_perolehan" >
                                                </div>
                                            </div>
                                        </div>
                                        <div class="span6">
                                            <div class="control-group">
                                                <label class="control-label" for="typeahead">Nilai Residu</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="nilai_residu" id="nilai_residu" >
                                                </div>
                                            </div>
											<div class="control-group">
                                                <label class="control-label" for="typeahead">Umur Ekonomis</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="umur_ekonomis" id="umur_ekonomis" >
                                                </div>
                                            </div>
											<div class="control-group">
                                                <label class="control-label" for="typeahead">Cabang</label>
                                                <div class="controls">
                                                    <input type="text" class="span8 typeahead" name="cabang" id="cabang" >
                                                </div>
                                            </div>
                                            
                                        </div>
                                    </div>
                                    <div class="form-actions">
                                        <button type="submit" class="btn btn-primary">Submit</button>
                                        <button type="reset" class="btn">Cancel</button>
                                    </div>
                                    </fieldset>
                                </form>
								
                                <?php } ?>
                            </div>
                        </div>
                        <!--/span-->
                    </div>
					
                    <?php
                    if (empty($aktiva)){
                        echo "tidak ada data";
                    } 
                    else {
                    
                    ?>
                    <div class="row-fluid sortable">
                        <div class="box span12">
                            <div class="box-content">
                                <table class="table table-striped table-bordered bootstrap-datatable datatable">
                                    <thead>
                                        <tr>
                                            <th>Nomor Aktiva</th>
                                            <th>Nama Aktiva</th>
                                            <th>Keterangan</th>
                                            <th>Harga Perolehan</th>
                                            <th>Nilai Residu</th>
                                            <th>Umur Ekonomis</th>
											<th>Cabang</th>
                                        </tr>
                                    </thead>
                                    
                                    <tbody>
                                        <?php
                                    foreach ($aktiva as $row) {
                                    ?>
                                        <tr>
                                            <td><?=$row['id_aktiva']?></td>
                                            <td><?=$row['nama']?></td>
                                            <td><?=$row['keterangan']?></td>
                                            <td><?=$row['harga_perolehan']?></td>
                                            <td><?=$row['nilai_residu']?></td>
											<td><?=$row['umur_ekonomis']?></td>
											<td><?=$row['cabang']?></td>
                                            <td class="center">
                                                <a class="btn btn-info" href="<?php echo base_url()?>akv/edit/<?=$row['id_aktiva']?>">
                                                    <i class="icon-edit icon-white"></i>  
                                                    Edit                                            
                                                </a>
                                                <a class="btn btn-danger" href="<?php echo base_url()?>akv/delete/<?=$row['id_aktiva']?>">
                                                    <i class="icon-trash icon-white"></i> 
                                                    Delete
                                                </a>
                                            </td>
                                        </tr>
                                        <?php
                                        } 
                                        ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <!--/span-->
                    </div>
                    <?php 
                }
                    ?>
                    <!--/row-->
                    <!-- content ends -->
                </div>
                <!--/#content.span10-->
